﻿<UserControl x:Class="Abhiruchi_Phase1.UC_ORG_Section"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
              xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" >
    <Grid Background="#FFF0F3F6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="20*" />
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="20*" />
            <ColumnDefinition Width="auto" />
        </Grid.ColumnDefinitions>
        <Line   HorizontalAlignment="Stretch" Width="auto"
        Stretch="Uniform" StrokeThickness="5" X1="0" Y1="0" X2="1" Y2="0" Margin="0,73,0,0" VerticalAlignment="Top" Grid.ColumnSpan="5">
            <Shape.Stroke>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="Transparent" Offset="0" />
                    <GradientStop Color="Silver" Offset="1" />
                    <GradientStop Color="Transparent" Offset="1" />
                </LinearGradientBrush>
            </Shape.Stroke>
        </Line>
        <Label Content="Section ID" Height="28" HorizontalAlignment="Left" Margin="29,131,0,0" Name="lblSecId" VerticalAlignment="Top" FontSize="12" FontFamily="Segoe UI" Foreground="#FF382D2C" />
        <Label Content="Section Name" Height="28" HorizontalAlignment="Left" Margin="21,130,0,0" Name="lblSecName" VerticalAlignment="Top" FontSize="12" FontFamily="Segoe UI" Foreground="#FF382D2C" FontWeight="Normal" FontStretch="Normal" Grid.Column="2" />
        <Label Content="Description" Height="28" HorizontalAlignment="Left" Margin="29,206,0,0" Name="lblDesc" VerticalAlignment="Top"  FontSize="12" FontFamily="Segoe UI" Foreground="#FF382D2C" />
        <TextBox Height="60" HorizontalAlignment="Stretch" Margin="149,206,0,0" Name="txtDesc" VerticalAlignment="Top" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"  FontSize="12" FontFamily="Segoe UI" Grid.ColumnSpan="4" Width="Auto" TabIndex="4" />
        <Label Content="Location" Height="28" HorizontalAlignment="Left" Margin="29,166,0,0" Name="lblLoc" VerticalAlignment="Top"  FontSize="12" FontFamily="Segoe UI" Foreground="#FF382D2C" />


        <Label Content="Section Incharge" Height="28" HorizontalAlignment="Left" Margin="22,169,0,0" Name="lblSecInCharge" VerticalAlignment="Top" Foreground="#FF382D2C" FontSize="12" FontFamily="Segoe UI" Grid.Column="2" />
        <CheckBox Content=" Is Active" Height="20" HorizontalAlignment="Left" Margin="1,271,0,0" Foreground="#FF382D2C" Name="chkIsActive" VerticalAlignment="Top" Width="83" IsChecked="True"  FontSize="12" FontFamily="Segoe UI" Grid.Column="1" TabIndex="5" />
        <Button Content="Save" Height="22" HorizontalAlignment="Left" Margin="0,319,0,0" Name="btnSave" VerticalAlignment="Top" Width="100" Click="btnSave_Click" FontSize="12" FontFamily="Segoe UI" Grid.Column="1" Foreground="#FF382D2C" TabIndex="6" />
        <Button Content="Clear" Height="22" HorizontalAlignment="Left" Margin="121,319,0,0" Name="btnClear" VerticalAlignment="Top" Width="100" Click="btnClear_Click" FontSize="12" FontFamily="Segoe UI" Grid.Column="1" Foreground="#FF382D2C" TabIndex="7" />
        <telerik:RadGridView HorizontalAlignment="Stretch" Margin="34,398,0,0" Name="GrdSectionData" VerticalAlignment="Top" RowActivated="radGrdData_RowActivated" Height="auto"   Foreground="#FF383635" BorderBrush="#FF1D1B1A"  IsReadOnly="True" FontSize="13" Grid.ColumnSpan="4" FontFamily="Segoe UI" Width="auto" TabIndex="8" />
        <ComboBox Height="22" HorizontalAlignment="Stretch" Margin="0,173,0,0" Name="cmbSecInCharge" VerticalAlignment="Top" VerticalContentAlignment="Center"  ItemsSource="{Binding}"  FontSize="12" FontFamily="Segoe UI" Grid.Column="3" Width="Auto" TabIndex="3">

        </ComboBox>
        <ComboBox Height="22" HorizontalAlignment="Stretch" Margin="0,172,0,0" Name="cmbLoc" VerticalAlignment="Top" VerticalContentAlignment="Center" ItemsSource="{Binding}"  FontSize="12" FontFamily="Segoe UI" Grid.Column="1" Width="Auto" TabIndex="2">

        </ComboBox>
        <Image Height="35" HorizontalAlignment="Left" Margin="12,19,0,0" Name="imgSectn" Stretch="Fill" VerticalAlignment="Top" Width="35" Source="/Abhiruchi_Phase1;component/Images/section.ico" />        
        <Label Content="" Height="30" HorizontalAlignment="Left" Margin="52,30,0,0" Name="lblNewrEdit" VerticalAlignment="Top" FontWeight="Bold" FontSize="18" Width="55" />
        <Label Content="Existing Section Details" Height="28" HorizontalAlignment="Left" Margin="29,364,0,0" Name="lblgrdexstngsctn" VerticalAlignment="Top" FontWeight="Bold" Foreground="#FF2554C7" FontSize="12" FontFamily="Segoe UI" Grid.ColumnSpan="2" />
        <Label Content="Section Details" Height="28" HorizontalAlignment="Left" Margin="29,92,0,0" Name="lblcntrlsctn" VerticalAlignment="Top" FontWeight="Bold" Foreground="#FF2554C7" FontSize="12" FontFamily="Segoe UI" />
        <Label Content="*" Height="29" HorizontalAlignment="Left" Margin="85,130,0,0" Name="label1" VerticalAlignment="Top" Width="19" Foreground="Red" FontWeight="Bold" FontSize="14" FontFamily="Candara" />
        <Label Content="*" Foreground="Red" Height="27" HorizontalAlignment="Left" Margin="96,129,0,0" Name="label2" VerticalAlignment="Top" Width="20" FontWeight="Bold" FontSize="14" FontFamily="Candara" Grid.Column="2" />
        <Label Content="*" FontWeight="Bold" Foreground="Red" Height="26" HorizontalAlignment="Left" Margin="76,166,0,0" Name="label4" VerticalAlignment="Top" Width="22" FontSize="12" FontFamily="Candara" />
        <Label Content="*" FontWeight="Bold" Foreground="Red" Height="29" HorizontalAlignment="Left" Margin="110,166,0,0" Name="label5" VerticalAlignment="Top" Width="24" FontSize="14" FontFamily="Candara" Grid.Column="2" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,131,0,0" Name="txtSecName" LostFocus="txtSecName_LostFocus"  FontSize="12" FontFamily="Segoe UI" VerticalAlignment="Top" Grid.Column="3" Width="Auto" TabIndex="1" MaxLength="0" TextWrapping="NoWrap" />
        <Label Content="Section Master" Height="30" HorizontalAlignment="Left" Margin="47,11,0,0" Name="lblHeding" VerticalAlignment="Top" Foreground="#FF666362" FontWeight="Normal" FontFamily="Corbel" FontSize="15" />
        <TextBox Grid.Column="1" Background="#FFF0F3F6" IsReadOnly="True" Height="22" HorizontalAlignment="Stretch" Margin="0,136,134,0" Name="lblSecIdDisplay" VerticalAlignment="Top" Width="Auto" FontSize="12" FontFamily="Segoe UI" Grid.ColumnSpan="2" />
    </Grid>
</UserControl>
